package com.ruoyi.gigi.record.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gigi.record.mapper.SignInRecordMapper;
import com.ruoyi.gigi.record.domain.SignInRecord;
import com.ruoyi.gigi.record.service.ISignInRecordService;

/**
 * 考勤记录管理Service业务层处理
 * 
 * @author gigi
 * @date 2024-01-31
 */
@Service
public class SignInRecordServiceImpl implements ISignInRecordService 
{
    @Autowired
    private SignInRecordMapper signInRecordMapper;

    /**
     * 查询考勤记录管理
     * 
     * @param id 考勤记录管理主键
     * @return 考勤记录管理
     */
    @Override
    public SignInRecord selectSignInRecordById(Long id)
    {
        return signInRecordMapper.selectSignInRecordById(id);
    }

    /**
     * 查询考勤记录管理列表
     * 
     * @param signInRecord 考勤记录管理
     * @return 考勤记录管理
     */
    @Override
    public List<SignInRecord> selectSignInRecordList(SignInRecord signInRecord)
    {
        return signInRecordMapper.selectSignInRecordList(signInRecord);
    }

    /**
     * 新增考勤记录管理
     * 
     * @param signInRecord 考勤记录管理
     * @return 结果
     */
    @Override
    public int insertSignInRecord(SignInRecord signInRecord)
    {
        return signInRecordMapper.insertSignInRecord(signInRecord);
    }

    /**
     * 修改考勤记录管理
     * 
     * @param signInRecord 考勤记录管理
     * @return 结果
     */
    @Override
    public int updateSignInRecord(SignInRecord signInRecord)
    {
        return signInRecordMapper.updateSignInRecord(signInRecord);
    }

    /**
     * 批量删除考勤记录管理
     * 
     * @param ids 需要删除的考勤记录管理主键
     * @return 结果
     */
    @Override
    public int deleteSignInRecordByIds(Long[] ids)
    {
        return signInRecordMapper.deleteSignInRecordByIds(ids);
    }

    /**
     * 删除考勤记录管理信息
     * 
     * @param id 考勤记录管理主键
     * @return 结果
     */
    @Override
    public int deleteSignInRecordById(Long id)
    {
        return signInRecordMapper.deleteSignInRecordById(id);
    }
}
